<div class="left_mail" style="float: right;">
    <h2 class="title4">Chi tiết các môn giảng dạy của gia sư <?php echo $details->name; ?></h2>
    <div class="col_de4">
                <?php if(!empty($huongdan)) { ?>
                <?php foreach ($huongdan as $hd):
                   if(!empty($hd->subid)) { $ten_monhoc = $this->common_model->getone('subjects',array('id'=>$hd->subid)); }
                 ?>
                    <?php if(!empty($ten_monhoc)) {
                        if(!empty($hd->description)){  
                    ?>
                            <div class="sub1">
                                <h2 class="sj_title"><?php echo $ten_monhoc->title; ?></h2>
                                <div class="des_sub">
                                    <?php echo $hd->description; ?>
                                </div>
                            </div>
                <?php  }  } endforeach; }?>
    </div>
</div>
<div class="right_mail" style="float: left;">
    <p class="intro_subjects"><i class="icon-calendar-empty icon-2x" style="color:#006699;"></i>&nbsp;&nbsp;&nbsp;Dưới đây là tất cả các môn dạy của gia sư <?php echo $details->name; ?></p>
        <div class="col_de4">
        <?php if(!empty($cha))
        { ?>
        <ul id="main_mon">
        <?php foreach($cha as $a) {?>
            <li class="parent_sub"><span class="parent"><?php echo $a->title; ?></span>
                <ul>
                <?php if($mang) { foreach ($mang[$a->id] as $b) {  ?>
                <li><span><?php echo $b->title; ?></span></li>
                <?php } } ?>
                </ul>
            </li>
        <?php } ?>
        </ul>
        <?php } ?>
    </div>
    <?php $this->load->view('com_tutors/views_form_email.php'); ?>
</div>
<style>
#main_mon
{
    width:100%;
}
#main_mon li
{
    list-style:none;
}
#main_mon li.parent_sub span.parent
{
    color:#ff9900;
    font-weight:bold;
    text-transform: capitalize;
    border-bottom:1px dashed #ccc;
    padding-bottom:10px;
    display:block;
}
#main_mon li.parent_sub ul li
{
    margin-left:15px;
}
#main_mon li.parent_sub ul li span
{
    color:#333;
    font-weight:normal;
}
</style>